import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'



import jumpIndex from '../apps/jump/jumpIndex.vue'
import jumpTs from '../apps/jump/jumpTs.vue'
import jumpTsScbPlayer from '../apps/jump/jumpScbPlayer.vue'
import jumpTsLed from '../apps/jump/jumpTsLed.vue'

const routes = [{
        path: '/',
        name: 'home',
        component: HomeView
    },
    {
        path: '/about',
        name: 'about',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/AboutView.vue')
    },

    {
        path: "/jump",
        name: "/jump",
        component: jumpIndex
    },
    {
        path: "/jumpTs",
        name: "/jumpTs",
        component: jumpTs
    },
    {
        path: "/jumpTsScb",
        name: "/jumpTsScb",
        component: jumpTsScbPlayer
    },
    {
        path: "/jumpTsLed",
        name: "/jumpTsLed",
        component: jumpTsLed
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    //history: createWebHistory(),
    routes
})

export default router